package com.hongyuan.sellfitness.ui.find.view_mode;

import android.app.Application;

import androidx.annotation.NonNull;
import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.sellfitness.base.CustomViewModel;
import com.hongyuan.sellfitness.data.MyRepository;
import com.hongyuan.sellfitness.ui.find.activity.EditPostActivity;
import com.hongyuan.sellfitness.ui.find.activity.FindSearchActivity;

public class FindViewModel extends CustomViewModel<MyRepository> {

    public FindViewModel(@NonNull Application application, MyRepository model) {
        super(application, model);
    }

    //搜索
    public BindingCommand goSearch = new BindingCommand(() -> startActivity(FindSearchActivity.class));
    //发布
    public BindingCommand goEdit = new BindingCommand(() -> startActivity(EditPostActivity.class));

}
